#ifndef MYTCPSOCKET_H
#define MYTCPSOCKET_H

#include <QTcpSocket>
#include <QFile>
#include <QTimer>

class MyTcpSocket : public QTcpSocket
{
    Q_OBJECT
public:
    MyTcpSocket();

signals:
    void logout(MyTcpSocket* m_socket);

public:
    QString m_name;  //保存名字, 等注销的时候, 把online置为0
    QFile m_file;
    qint64 m_total;
    qint64 m_recved;
    bool m_upload;
private:
    QTimer *m_timer;

public:
    void copy_dir(QString src_dir, QString dest_dir);
};

#endif // MYTCPSOCKET_H

/*
:-1: error: protocol.o:(.data+0x0):
multiple definition of `REGIST_OK'; mytcpsocket.o:(.data+0x0): first defined here
*/
